<?php

namespace App\Http\Controllers\Admin;

use Validator;
use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Input;

class IndexController extends Controller
{

    
    //后台首页加载模板
    public function index()
    {

	return view('admin.index');


    }
	//执行退出
	public function quit()
    {

        session(['user'=>null]);
        session()->flush();
        return redirect('admin/login');
    }
}
